package com.unknowpupil.oauth2.service.impl;

import com.unknowpupil.oauth2.domain.TbPermission;
import com.unknowpupil.oauth2.mapper.TbPermissionMapper;
import com.unknowpupil.oauth2.service.ITbPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 权限表 服务实现类
 * </p>
 *
 * @author AutoGenerator
 */
@Service
public class TbPermissionServiceImpl extends ServiceImpl<TbPermissionMapper, TbPermission>implements ITbPermissionService {

    @Override
    public List<TbPermission> selectByUserId(Long id) {

        List<TbPermission> list =  baseMapper.selectByUserId(id);
        return list;
    }
}
